package com.zyl.Mapper;

import com.zyl.pojo.CommentRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author: Zyl
 * @Param:
 * @return:
 * @Description:
 */
@Mapper
@Repository
public interface CommentRecordMapper {
    public List<CommentRecord> findAllComment();
    public void deleteCommentById(Integer id);
    public Integer AnswerCount(Integer answerId,Long articleId);
    public List<CommentRecord> findCommentByArticleId(Long articleId);
    public List<CommentRecord> findCommentByResponseId(Integer responseId);
    public int ResponseCount(Long responseId,Long articleId);
    public void addComment(CommentRecord commentRecord);
    public void addReply(CommentRecord commentRecord);
    public Integer commentCount();
}
